package com.mbyte.easy.taskstudent.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mbyte.easy.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lp
 * @since 2020-06-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_student")
public class TaskStudent extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户的id，对应t_user表的id
     */
    private Long userId;

    /**
     * 班级id，对应t_class表的id
     */
    private Long classId;

    /**
     * 用户名，也是学号
     */
    @TableField(exist = false)
    private String userName;

    /**
     * 班级名称
     */
    @TableField(exist = false)
    private String className;

    /**
     * 姓名
     */
    private String name;

    /**
     * 已修改，代表状态
     */
    private Integer sex;
    @TableField(exist = false)
    private String statusName;
    /**
     * 年龄
     */
    private Integer age;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 电子邮箱
     */
    private String email;

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }
    public String getStatusName() {
        return statusName;
    }

}
